package com.example.studytest.Controller.OpenData;

import com.example.studytest.Entity.OpenData.T_download_per;
import com.example.studytest.Repository.OpenData.DownloadPerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/download_per")
public class DownloadPerController {

    @Autowired
    private DownloadPerRepository downloadPerRepository;

    @PostMapping("/save")
    public String save(@RequestBody T_download_per t_download_per){
        downloadPerRepository.save(t_download_per);
        return "success";
    }
}
